<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | create by allen.qiang
// +----------------------------------------------------------------------


/**
 * 支付方式操作功能
 * @package  htdocs
 * @subpackage  quanliadmin
 * create by allen.qiang
 */

class pa_payType {

	public function execute() {

        if (isset($_REQUEST['operFlg']) && $_REQUEST['operFlg'] > 0) {

            switch ( $_REQUEST['operFlg'] ) {

                case 1:
                    $this->payTypeList();
                    break;

                case 2:
                    $this->paymentMethodList();
                    break;

                default:
                    backendError();
                    break;

            }

        } else {

            backendError();

        }

	}

    /**
     * 支付方式列表页
     */
    private function payTypeList () {

		global $G_PGLOB;

        $G_PGLOB->smarty->assign('edit_permission', $G_PGLOB->has_permission(10));
		$G_PGLOB->smarty->display('system/payTypeList.tpl');

	}

    /**
     * 付款方式列表页
     */
    private function paymentMethodList () {

        global $G_PGLOB;
        $G_PGLOB->smarty->assign('payTypeID' ,$_REQUEST['payTypeID']);
        $G_PGLOB->smarty->display('system/paymentMethodList.tpl');

    }
}